<%@ page import="com.lagou.pojo.Resume" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<h2>SSS Hello World!</h2>
<% List<Resume> list = (List<Resume>)request.getAttribute("list");%>

<h2>我是服务器：${pageContext.request.localPort}</h2>
<h2>当前sessionId：${pageContext.session.id}</h2>
<table>
    <tr><td colspan="5"><div style="float: right;"> <a href="${pageContext.request.contextPath}/resume/updatepage">添加</a></div></td></tr>
    <tr><td>id</td><td>姓名</td><td>地址</td><td>电话</td><td>操作</td></tr>
<% for (Resume resume : list) { %>
    <tr>
        <td><%=resume.getId()%></td>
        <td><%=resume.getName()%></td>
        <td><%=resume.getAddress()%></td>
        <td><%=resume.getPhone()%></td>
        <td>
            <a href="${pageContext.request.contextPath}/resume/deleteById?id=<%=resume.getId()%>">删除</a>
            <a href="${pageContext.request.contextPath}/resume/updatepage?id=<%=resume.getId()%>">修改</a>
        </td>
    </tr>
<% } %>
</table>
</body>
</html>
